// ActionScript file
//初始化所有监听的事件
import flash.events.Event;
import flash.events.MouseEvent;

import mx.controls.Alert;

public function initListener():void
{
	userLoginSubmit.addEventListener(MouseEvent.CLICK, loginIn);
	//多参
	addEventListener("login", function(e:Event):void
	{
		loginData(e, "sayHello")
	});
	//无参
	addEventListener("loginSec", loginDataSec);
}

public function loginData(event:Event, str:String):void
{
	var result:PropertyInfo=obj as PropertyInfo;
	Alert.show("1");
	dispatchEvent(new Event("loginSec"));
}

public function loginDataSec(event:Event):void
{
	Alert.show("2");
}